<?php

// trigger_error('12312');
/*下面代码优化微信自定义回复的效率*/

// remove_action('plugins_loaded', 'wp_maybe_load_widgets', 0);
// remove_action('plugins_loaded', 'wp_maybe_load_embeds',  0);
// remove_action('plugins_loaded', '_wp_customize_include' );

// remove_action('sanitize_comment_cookies',   'sanitize_comment_cookies');

// remove_action('init', 'smilies_init', 5);	
// remove_action('init', 'wp_widgets_init', 1);
// remove_action('init', 'kses_init');
// remove_action('init', 'ms_subdomain_constants');
// remove_action('init', 'check_theme_switched',99);
// remove_action('init', 'maybe_add_existing_user_to_blog');
// remove_action('init', 'wpjam_feed_post_views_init', 4);

// remove_action('set_current_user', 'kses_init');

// remove_action('wp_loaded', '_custom_header_background_just_in_time' );
// remove_filter('wpjam_html_replace', 'wpjam_qiniu_html_replace');

if(!defined('ABSPATH')){
	include('../../../../wp-load.php');
}


include(WEIXIN_ROBOT_PLUGIN_DIR.'includes/class-weixin-reply.php');		// 微信被动回复类库
include(WEIXIN_ROBOT_PLUGIN_DIR.'includes/class-weixin-message.php');	// 微信消息处理类库

include(WEIXIN_ROBOT_PLUGIN_DIR.'public/query.php');		// 搜索回复

global $wechatObj, $weixin_reply;
$weixin_reply	= $wechatObj = new WEIXIN_Reply(weixin_get_appid());
$weixin_reply->response_msg();
exit;	